From 5e57fc3e1cc9320459a5c02f115e3247d25416ca Mon Sep 17 00:00:00 2001 From: "robertlipe@gmail.com" Date: Mon, 12 Dec 2011 00:46:35 +0000 Subject: [PATCH] Let geocache encoding type in GPX be case insensitive. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@4132 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/html.c | 2 +- gpsbabel/kml.c | 2 +- gpsbabel/palmdoc.c | 2 +- gpsbabel/text.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gpsbabel/html.c b/gpsbabel/html.c index ff1fba2d7..9e21da9aa 100644 --- a/gpsbabel/html.c +++ b/gpsbabel/html.c @@ -224,7 +224,7 @@ html_disp(const waypoint* wpt) char* t = NULL; int encoded = 0; encstr = xml_attribute(logpart, "encoded"); - encoded = (encstr[0] != 'F'); + encoded = (toupper(encstr[0]) != 'F'); if (html_encrypt && encoded) { s = rot13(logpart->cdata); diff --git a/gpsbabel/kml.c b/gpsbabel/kml.c index 660ac4e16..874a7cf67 100644 --- a/gpsbabel/kml.c +++ b/gpsbabel/kml.c @@ -1314,7 +1314,7 @@ char* kml_geocache_get_logs(const waypoint* wpt) char* t = NULL; int encoded = 0; encstr = xml_attribute(logpart, "encoded"); - encoded = (encstr[0] != 'F'); + encoded = (toupper(encstr[0]) != 'F'); if (html_encrypt && encoded) { s = rot13(logpart->cdata); diff --git a/gpsbabel/palmdoc.c b/gpsbabel/palmdoc.c index b46581b33..4fa0a8f25 100644 --- a/gpsbabel/palmdoc.c +++ b/gpsbabel/palmdoc.c @@ -549,7 +549,7 @@ palmdoc_disp(const waypoint *wpt) char *s = NULL; int encoded = 0; encstr = xml_attribute(logpart, "encoded"); - encoded = (encstr[0] != 'F'); + encoded = (toupper(encstr[0]) != 'F'); if (palm_encrypt && encoded) { s = rot13(logpart->cdata); diff --git a/gpsbabel/text.c b/gpsbabel/text.c index bad61f755..acb3be955 100644 --- a/gpsbabel/text.c +++ b/gpsbabel/text.c @@ -238,7 +238,7 @@ text_disp(const waypoint *wpt) char *s = NULL; int encoded = 0; encstr = xml_attribute(logpart, "encoded"); - encoded = (encstr[0] != 'F'); + encoded = (toupper(encstr[0]) != 'F'); if (txt_encrypt && encoded) { s = rot13(logpart->cdata); -- 2.30.2